imx6: icorem6: Enable MTD device support
authorJagan Teki <[email protected]>
Sat, 8 Oct 2016 12:30:27 +0000 (18:00 +0530)
committerStefano Babic <[email protected]>
Wed, 26 Oct 2016 17:00:06 +0000 (19:00 +0200)
Enable MTD device, partition and command support.

Cc: Stefano Babic <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Matteo Lisi <[email protected]>
Cc: Michael Trimarchi <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
include/configs/imx6qdl_icore.h

index cd3aa437716881b315df678939cc821225e46a83..6e33ec31b36b6c6c64964206922ebbb299622e2d 100644 (file)
 # define CONFIG_SYS_NAND_U_BOOT_START  CONFIG_SYS_TEXT_BASE
 # define CONFIG_SYS_NAND_U_BOOT_OFFS   0x200000
 
+/* MTD device */
+# define CONFIG_MTD_DEVICE
+# define CONFIG_CMD_MTDPARTS
+# define CONFIG_MTD_PARTITIONS
+# define MTDIDS_DEFAULT                        "nand0=nand"
+
 # define CONFIG_APBH_DMA
 # define CONFIG_APBH_DMA_BURST
 # define CONFIG_APBH_DMA_BURST8